﻿using Harmontronics.Model.Dto.Login;
using Harmontronics.Model.Other;

namespace Harmontronics.Api.Config
{
    public class ResultHelper
    {
        public static ApiResponseData Success(object res)
        {
            return new ApiResponseData() { code = 200, data = res, message = "success!" };
        }
        public static ApiResponseData Success(object res, string message)
        {
            return new ApiResponseData() { code = 200, data = res, message = message };
        }
        public static ApiResponseData Error(int code,string message)
        {
            return new ApiResponseData() { code = code, message = message };
        }
    }
}
